package com.bbu.javaexam.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bbu.javaexam.dao.PaperMapper;
import com.bbu.javaexam.domain.PaperManage;
import com.bbu.javaexam.service.PaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Alex
 * @version 1.0.0
 * @ClassName PaperServiceImpl.java
 * @Description TODO
 */
@Service
public class PaperServiceImpl extends ServiceImpl<PaperMapper, PaperManage> implements PaperService {
    @Autowired
    private PaperMapper paperMapper;

    @Override
    public List<PaperManage> findAll() {
        return paperMapper.findAll();
    }

    @Override
    public List<PaperManage> findById(Integer paperId) {
        return paperMapper.findById(paperId);
    }

    @Override
    public int add(PaperManage paperManage) {
        return paperMapper.add(paperManage);
    }
}
